<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>File Source for DateFormat.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<h1>Source for file DateFormat.php</h1>
<p>Documentation is available at <a href="../Pike/_Doctrine---Query---Mysql---DateFormat.php.html">DateFormat.php</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a>use&nbsp;<span class="src-id">Doctrine</span>\<span class="src-id">ORM</span>\<span class="src-id">Query</span>\<span class="src-id">AST</span>\<span class="src-id">Functions</span>\<span class="src-id">FunctionNode</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a3"></a>use&nbsp;<span class="src-id">Doctrine</span>\<span class="src-id">ORM</span>\<span class="src-id">Query</span>\<span class="src-id">Lexer</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a4"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-key">class&nbsp;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html">Pike_Doctrine_Query_Mysql_DateFormat</a>&nbsp;<span class="src-key">extends&nbsp;</span><span class="src-id">FunctionNode</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a7"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html#var$firstDateExpression">$firstDateExpression</a>&nbsp;=&nbsp;<span class="src-id">null</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a8"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html#var$secondDateExpression">$secondDateExpression</a>&nbsp;=&nbsp;<span class="src-id">null</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a9"></a>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
<li><div class="src-line"><a name="a10"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html#methodparse">parse</a><span class="src-sym">(</span>\<span class="src-id">Doctrine</span>\<span class="src-id">ORM</span>\<span class="src-id">Query</span>\<span class="src-id">Parser&nbsp;</span><span class="src-var">$parser</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a11"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a12"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$parser</span><span class="src-sym">-&gt;</span><span class="src-id">match</span><span class="src-sym">(</span><span class="src-id">Lexer</span><span class="src-sym">::</span><span class="src-id">T_IDENTIFIER</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a13"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$parser</span><span class="src-sym">-&gt;</span><span class="src-id">match</span><span class="src-sym">(</span><span class="src-id">Lexer</span><span class="src-sym">::</span><span class="src-id">T_OPEN_PARENTHESIS</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a14"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html#var$firstDateExpression">firstDateExpression</a>&nbsp;=&nbsp;<span class="src-var">$parser</span><span class="src-sym">-&gt;</span><span class="src-id">ArithmeticPrimary</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a15"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$parser</span><span class="src-sym">-&gt;</span><span class="src-id">match</span><span class="src-sym">(</span><span class="src-id">Lexer</span><span class="src-sym">::</span><span class="src-id">T_COMMA</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a16"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html#var$secondDateExpression">secondDateExpression</a>&nbsp;=&nbsp;<span class="src-var">$parser</span><span class="src-sym">-&gt;</span><span class="src-id">ArithmeticPrimary</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a17"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$parser</span><span class="src-sym">-&gt;</span><span class="src-id">match</span><span class="src-sym">(</span><span class="src-id">Lexer</span><span class="src-sym">::</span><span class="src-id">T_CLOSE_PARENTHESIS</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a18"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a19"></a>&nbsp;</div></li>
<li><div class="src-line"><a name="a20"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">public&nbsp;</span><span class="src-key">function&nbsp;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html#methodgetSql">getSql</a><span class="src-sym">(</span>\<span class="src-id">Doctrine</span>\<span class="src-id">ORM</span>\<span class="src-id">Query</span>\<span class="src-id">SqlWalker&nbsp;</span><span class="src-var">$sqlWalker</span><span class="src-sym">)</span></div></li>
<li><div class="src-line"><a name="a21"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a22"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-key">return&nbsp;</span><span class="src-str">'DATE_FORMAT('&nbsp;</span>.</div></li>
<li><div class="src-line"><a name="a23"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html#var$firstDateExpression">firstDateExpression</a><span class="src-sym">-&gt;</span><span class="src-id">dispatch</span><span class="src-sym">(</span><span class="src-var">$sqlWalker</span><span class="src-sym">)&nbsp;</span>.&nbsp;<span class="src-str">',&nbsp;'&nbsp;</span>.</div></li>
<li><div class="src-line"><a name="a24"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$this</span><span class="src-sym">-&gt;</span><a href="../Pike/Pike_Doctrine_Query_Mysql_DateFormat.html#var$secondDateExpression">secondDateExpression</a><span class="src-sym">-&gt;</span><span class="src-id">dispatch</span><span class="src-sym">(</span><span class="src-var">$sqlWalker</span><span class="src-sym">)&nbsp;</span>.</div></li>
<li><div class="src-line"><a name="a25"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-str">')'</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a26"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a27"></a><span class="src-sym">}</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Thu, 15 Sep 2011 16:07:44 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</body>
</html>